package org.millioncall.yueyoga.admin.dao.impl;

import org.millioncall.yueyoga.admin.dao.BaseDao;
import org.millioncall.yueyoga.admin.dao.MemberGroupDAO;
import org.millioncall.yueyoga.admin.model.MemberGroup;

public class MemberGroupDAOImpl extends BaseDao implements MemberGroupDAO {

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.getPagableSqlSessionTemplate().delete("deleteByPrimaryKey", id);
	}

	@Override
	public int insert(MemberGroup record) {
		return this.getPagableSqlSessionTemplate().insert("insertGroupMemberSelective", record);
	}

	@Override
	public int insertSelective(MemberGroup record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public MemberGroup selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(MemberGroup record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(MemberGroup record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(MemberGroup record) {
		return this.getPagableSqlSessionTemplate().delete("deleteGroupMember", record);
	}

	@Override
	public int getGroupMemberCount(MemberGroup record) {
		return this.getPagableSqlSessionTemplate().selectOne("getGroupMemberCount", record);
	}

}
